package design.prototype;

import design.prototype.PrototypeLibrary.KeyModelType;

public class Test {
    public static void main(String[] args) {
        Key key = PrototypeLibrary.getNewKeyByKeyModelToMaster(
                KeyModelType.GATE_KEY_MODEL, new Master("小明"));
        key.openDoor();
    }
}
